package cn.knet.excel.imp.knetexceltool.task;

import cn.knet.excel.imp.knetexceltool.service.BindCleanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class BindCleanTask {
    @Resource
    private BindCleanService bindCleanService;

    @Scheduled(cron = "${task.bind.clean}")
    public void startCleanBind() throws Exception {
        bindCleanService.startCleanBind();
    }
}
